package demo2.assignment3;

import java.util.Objects;

/**
 * @author Leon(赵亮)
 * @version 1.0.0
 * 10 Sep 2021
 * this is the new system user info class
 */
public class FacultyMember implements IFacultyMember {
    private String identification;
    private String name;
    private String contactTelephone;

    @Override
    public String getIdentification() {
        return identification;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public String getContactTelephone() {
        return contactTelephone;
    }

    public void setIdentification(String identification) {
        this.identification = identification;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setContactTelephone(String contactTelephone) {
        this.contactTelephone = contactTelephone;
    }

    @Override
    public String toString() {
        return "FacultyMember{" +
                "identification='" + identification + '\'' +
                ", name='" + name + '\'' +
                ", contactTelephone='" + contactTelephone + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        FacultyMember that = (FacultyMember) o;
        return identification.equals(that.identification) && name.equals(that.name) && contactTelephone.equals(that.contactTelephone);
    }

    @Override
    public int hashCode() {
        return Objects.hash(identification, name, contactTelephone);
    }

    public void setAdapter(){}

}
